package com.zoe.app.selectors;

import lombok.RequiredArgsConstructor;

import java.util.List;

/**
 * @author zbg
 * @date 2023/06/06
 * @description
 */
@RequiredArgsConstructor
public class LocalFilterSelector implements IFilterSelector {

    private final List<String> filterNames;

    @Override
    public boolean match(String filterName) {
        return filterNames.stream()
                          .anyMatch(f -> f.equalsIgnoreCase(filterName));
    }
}
